package com.ecut.property_project.service.contract;

import com.ecut.property_project.mapper.contract.ContractRentFreeMapper;
import com.ecut.property_project.model.contract.ContractRentFree;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ContractRentFreeService{

    @Resource
    private ContractRentFreeMapper contractRentFreeMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return contractRentFreeMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(ContractRentFree record) {
        return contractRentFreeMapper.insert(record);
    }

    
    public int insertSelective(ContractRentFree record) {
        return contractRentFreeMapper.insertSelective(record);
    }

    public List<ContractRentFree> selectAll(){ return contractRentFreeMapper.selectAll(); }

    public List<ContractRentFree> selectByPage(Integer page, Integer pageSize){return contractRentFreeMapper.selectByPage(page,pageSize);}

    public ContractRentFree selectByPrimaryKey(Integer id) {
        return contractRentFreeMapper.selectByPrimaryKey(id);
    }
    public List<ContractRentFree> selectByHeadId(String headId){
        return contractRentFreeMapper.selectByHeadId(headId);
    }

    
    public int updateByPrimaryKeySelective(ContractRentFree record) {
        return contractRentFreeMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(ContractRentFree record) {
        return contractRentFreeMapper.updateByPrimaryKey(record);
    }

}
